layui.define(['table', 'coreCompanyApi'], function(exports) {
    var coreCompanyApi = layui.coreCompanyApi;
    var table=layui.table;
    var view = {
        init:function(){
        },
        delBatch:function(){
           var data = Common.getMoreDataFromTable(table,"coreCompanyTable");
           if(data==null){
               return ;
           }
           Common.openConfirm("确认要删除这些检测单位?",function(){
            var ids =Common.concatBatchId(data,"id");
            coreCompanyApi.del(ids,function(){
                Common.success("删除成功");
                    dataReload();
                })
            })
        },
        delRow:function(data){
            Common.openConfirm("确认要删除?",function(){
                coreCompanyApi.del(data.id,function(){
                    Common.success("删除成功");
                    dataReload();
                })
            })
        }
    }
    exports('del',view);
	
});